class RegionsController < ApplicationController
  def index
    @regions = Region.where(level: params[:level])
  end

  def show
    @region = Region.find params[:id]
    @region_children = Region.where(parent_code: @region.code)
  end
end
